package com.mystnihon.freeremote.loader.torrent;

import ca.benow.transmission.TransmissionClient;

import com.mystnihon.freeremote.data.MapOfSessionFieldAndObject;
import com.octo.android.robospice.request.SpiceRequest;

public class GetSessionRequest extends SpiceRequest<MapOfSessionFieldAndObject> {

    private TransmissionClient mClient;
    
	public GetSessionRequest(TransmissionClient client) {
        super(MapOfSessionFieldAndObject.class);
        mClient = client;
    }

    @Override
    public MapOfSessionFieldAndObject loadDataFromNetwork() throws Exception {
        MapOfSessionFieldAndObject map = new MapOfSessionFieldAndObject(mClient.getSession());
        return map;
    }

    
}
